<!DOCTYPE html>
<html lang="en">
<head>
 <meta charset="UTF-8">
 <title>首页</title>
</head>
<body>
 <p id="login">
 <h1>用户登录</h1>
 <form method="post"   {%csrf_token%}>
 <input type="text" required="required" placeholder="用户名" name="u"></input>
 <input type="password" required="required" placeholder="密码" name="p"></input>
 <button class="but" type="submit">登录</button>
 </form>
 </p>
</body>
</html>